home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FM Towns: Free Software Collection 6
/
FM Towns Free Software Collection 6.iso
/
t_os
/
vdtwn
/
tvf
/
asmhd6
/
tw1hd6
/
d_main1_.hd6
next >
Wrap
Text File
|
1993-07-08
|
2KB
|
147 lines
ds_name db '\KOMEI\実物\TVF_PRG\MAIN1',0
paint_wd:
SET_P dt1
WD_LEFT
ret
re_paint:
mouse_in:
ret
be_called:
YOMU eax,300
push ebp
mov ebp,eax
push ds
push es
mov ax,1ch
mov ds,ax
mov es,ax
;--------------------------------------------------------
;===== draw main1 =====
align 4
draw_main1: xor eax,eax ;画面クリア
mov edi,40000h
mov esi,400h-(360*2)
mov bl,240
align 4
#clr:
mov bh,360/2/15
align 4
#clrr:
REPT 15
and [edi],ebp
add edi,4
ENDM
dec bh
jne short #clrr
add edi,esi
dec bl
jne short #clr
pop es
pop ds
mov eax,ebp
pop ebp
push eax
CALL_P dt1
pop eax
push ebp
mov ebp,eax
push es
push ds
mov ax,1ch
mov ds,ax
mov es,ax
;call screen_side_clear
mov dx,0458h ;Packed pixel mask register set.
mov al,0
out dx,al
mov dx,045Ah
mov ax,bp
out dx,ax
shr ebp,16
mov dx,0458h
mov al,1
out dx,al
mov dx,045Ah
mov ax,bp
out dx,ax
align 4
#repeat1: mov esi,20
mov edi,40000h+20
mov eax,(360-12)*2/4
mov ebx,400h-(360-12)*2
REPT 240
mov ecx,eax
rep movsd
add esi,ebx
add edi,ebx
ENDM
mov ax,0901h
int 90h
xor dh,0FFh
je #repeat1
push dx
mov dx,0458h ;Packer pixel mask register clear.
mov al,0
out dx,al
mov dx,045Ah
mov ax,0FFFFh
out dx,ax
shr ebp,16
mov dx,0458h
mov al,1
out dx,al
mov dx,045Ah
mov ax,0FFFFh
out dx,ax
pop dx
pop es
pop ds
pop ebp
ret
p_set:
M_P_SET
p_call:
M_P_CALL
dt1:
call sub_edi
dw ?
db 'S_S_CLS',0
look_me:
call sub_esi
dd 0,0
dw 1,0,10,42,10,90,15,1,0,0